<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  $oscTemplate->buildBlocks();

  if (!$oscTemplate->hasBlocks('boxes_column_left')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }

  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>

<?php
  if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script>
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
	
</script>
<?php
  }
?>

<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templates_path; ?>css/template.css" />
<script type="text/javascript">
function add_email_newsletter() {
	var string = 'action=add_email_newsletter';
	var email = $('#user_email_formAcymailing1').val();
	
	string += '&email_address=' + email;
	
	var rs = new RegExp("([A-Za-z0-9_.-]){2,}@([A-Za-z0-9_.-]){2,}.([A-Za-z0-9_.-]){2,}");
	if(email.match(rs) == null) {
		alert('Email is not right!');
		return false;
	}
	$.ajax({
		url: "add_email_newsletter.php",
		type: "POST",
		data: string,
		success: function(data){
			alert(data);
			$('#user_email_formAcymailing1').val() = 'Email...';
		}
	});
	return false;
}
$(document).ready(function() {
	$('form[name=quick_find]').submit(function() {
		if($('input[name=keywords]').val()=='') {
			alert("<?php echo JS_ERROR . '* ' . ERROR_EMPTY_KEYWORDS; ?>");
			return false;
		}
	});
});
</script>

<?php echo $oscTemplate->getBlocks('header_tags'); ?>
</head>

<body>
	<div class="top_bg">
    	<div class="wrap">
        	<div id="header">
                <div id="topmenu">
                    <div class="moduletable">
                        <div id="jflanguageselection">
                            <ul class="jflanguageselection">
                                <li<?=($language=='french'?' class="active_language"':''); ?>><a href="<?=tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'language')) . 'language=fr'); ?>">FR</a></li>
                            	<li<?=($language=='dutch'?' class="active_language"':''); ?>><a href="<?=tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'language')) . 'language=nl'); ?>">NL</a></li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="moduletable_facebook hasH">
                        <p><a href="http://www.facebook.com/pages/Kathmandu/112477592160588" target="_blank"><img src="images/facebook_icon.png" border="0"></a></p>
                    </div>
                    
                    <div class="moduletable">
                        <ul class="top_menu">
                            <li<?php echo tep_set_current_page(FILENAME_DEFAULT); ?>><a href="<?php echo FILENAME_DEFAULT; ?>">Home</a></li>
                            <li<?php echo tep_set_current_page(FILENAME_OPENINGSUREN); ?>><a href="<?php echo FILENAME_OPENINGSUREN; ?>">Openingsuren</a></li>
                            <li<?php echo tep_set_current_page(FILENAME_CONTACT_US); ?>><a href="<?php echo FILENAME_CONTACT_US; ?>">Contact</a></li>
                            <li<?php echo tep_set_current_page(FILENAME_CREATE_ACCOUNT); ?> style="overflow:hidden;"><a href="javascript:void(0);">Registreren</a><span></span>
                                <ul class="sub_menu">
                                	<li><a href="create_account.php?type=retail">&bull; Particulier</a></li>
                                    <li><a href="create_account.php?type=wholesale">&bull; Handelaar</a></li>
                                </ul>
                            </li>
<?php 
	if (!tep_session_is_registered('customer_id')) {									
?>
                            <li<?php echo tep_set_current_page(FILENAME_LOGIN); ?>><a href="<?php echo FILENAME_LOGIN; ?>">Inloggen</a></li>
<?php
	} else {
?>
                            <li<?php echo tep_set_current_page(FILENAME_LOGOFF); ?>><a href="<?php echo FILENAME_ACCOUNT; ?>" style="margin-right:5px;">Hi!<?php echo $customer_first_name; ?></a><a href="<?php echo FILENAME_LOGOFF; ?>">Logoff</a></li>
<?php
	}
?>
                                                        
                        </ul>		
                    </div>
                </div>
                <div id="logo_top">		
                    <div style="text-align:left;"><img src="images/logo_melan.png" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/logo_kathmandu.png" alt=""></div>		
                </div>
                <div id="mainmenu">
                    <ul class="main_menu">
                        <li<?php echo tep_set_current_page(FILENAME_DEWINKEL); ?>><div class="left"><div class="right"><a href="<?php echo FILENAME_DEWINKEL; ?>">de winkel</a></div></div></li>
                        <li<?php echo tep_set_current_page(FILENAME_DEFAULT, true); ?>><div class="left"><div class="right"><a href="<?php echo FILENAME_DEFAULT . '?cPath=0'; ?>">webshop</a></div></div></li>
                        <li<?php echo tep_set_current_page(FILENAME_WHOLESALE); ?>><div class="left"><div class="right"><a href="<?php echo FILENAME_WHOLESALE . '?cPath=0'; ?>">GROOTHANDEL</a></div></div></li>
                        <li<?php echo tep_set_current_page(FILENAME_NEWSCENTER); ?>><div class="left"><div class="right"><a href="<?php echo FILENAME_NEWSCENTER; ?>">NIEUWS</a></div></div></li>
                    </ul>	
                    
    
                </div><!--end #topmenu -->
        	</div><!--end #header -->
            <div id="maincontent">

<?php //require(DIR_WS_INCLUDES . 'header.php'); ?>